package pojo;

import java.time.LocalDate;

/**
 * 实体类： 现实世界中，我们能够具体表示的对象
 * LocalDate ：表示的是一个日期类型
 */
public class DVD {

    private String name; //名字
    private int state = 1;   //状态   0 表示已借出  1 表示未借出
    private LocalDate date;//借出日期
    private long count = 0; //借出次数
    private double rent; //租金

    public DVD() {
    }

    public DVD(String name, int state, LocalDate date, long count, double rent) {
        this.name = name;
        this.state = state;
        this.date = date;
        this.count = count;
        this.rent = rent;
    }

    public DVD(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public double getRent() {
        return rent;
    }

    public void setRent(double rent) {
        this.rent = rent;
    }



}
